import request from '@/utils/request'

// roles search 角色查找
export function getRoleList(data) {
  return request({
    url: '/roles/search',
    method: 'post',
    data
  })
}

// user add 用户新增
export function addRole(data) {
  return request({
    url: '/roles/add',
    method: 'post',
    data
  })
}

// user delete 用户删除
export function deleteRole(params) {
  return request({
    url: '/roles/delete',
    method: 'post',
    params
  })
}

// user update 用户更新
export function updateRole(data) {
  return request({
    url: '/roles/update',
    method: 'post',
    data
  })
}
